#!/bin/sh
#
# June 6, 2004
#
# Hi, I just made this to delete the spam I place in my inbox trash folder
# using the AGMS spam filter and the match header utilities in Mail Daemon
# Replacement.
#
# Just change "/boot/home/mail/inbox/Trash" to wherever you have the match
# header filter send your spam.  If you place this program in the
# "/boot/home/config/settings/mail/Menu Links" folder, it will show up when you
# right click the mailbox icon in the deskbar.  You can also put a link in this
# folder to your Spam trash folder, so you can check and delete your spam
# simply from the mailbox icon.
#
# I also just added a few lines that will kill the Spam Server as well (the
# last three lines).  I find that useful.  If you decide you do not want that
# option, just erase the lines.  However, if you decide to put them back, they
# need to be in the order they are in, or the debugger will make an appearance!
# :) Another way to quit the SpamServer, if you have "hey"
# (http://www.bebits.com/app/3332) installed, is to simply use the line:
#
# hey AGMSBayesianSpamServer quit
#
# which is a cleaner way of doing it.  The first way might give you an error
# message sometimes.  The script will work, however, with having to close an
# extra error window as well.  You can choose your option by removing the
# number sign in front of the line(s).
# 
# Optionally, you can make a separate script for killing the Spam Server.  If
# you do, make a copy of this script, as in, close this document, and make a
# copy with the tracker, open the copy with a text editor (like StyledEdit) and
# delete the first non #'d line.  If you open up a fresh document with, say,
# StyledEdit, and just copy the contents from here into there, it will not
# work.  Clicking on your new script will only bring up the contents of the
# script in your text viewer, and won't give you the function of the script.

rm -rf /boot/home/mail/inbox/Trash/*

# hey AGMSBayesianSpamServer quit

# kill CommanderLooper
# kill "w>Alexander G. M. Smith's Bayes"
# kill AGMSBayesianSpamServer
